package com.slliver.controller;


import com.slliver.service.HelloService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import com.slliver.service.HelloService;

@Slf4j
@RestController
public class TestController {


    @Autowired
    private HelloService service;

    @GetMapping(value = "/hello/{name}")
    public String apiHello(@PathVariable String name) {
        log.info("sayHello === >>> " + name);
        return service.sayHello(name);
    }

}
